<?php

class RawFilesController extends AppController {

    public $scaffold;
    public $paginate;
    public $components = array(
        'ExtendedScaffold.ScaffoldUtil' => array(
            'indexSetFields' => array(
                'name',
                'is_writable',
            ),
            'editSetFields' => array(
                'id',
                'name',
            )
        )
    );
    
    public $notModuleActions = array(
        'add',        
    );

    public function getPaginatorUtilFilters() {
        return array(
            'Name' => array(
                'conditions' => "RawFile.name like concat(?,'%')"
            )
        );
    }

}
